gnomeos-install: don't cd into /ostree prematurely
authorDiego Escalante Urrelo <diegoe@igalia.com>
Thu, 5 Apr 2012 05:30:20 +0000 (00:30 -0500)
committerColin Walters <walters@verbum.org>
Thu, 5 Apr 2012 13:05:22 +0000 (09:05 -0400)
The script will die and not proceed with the creation of the directory.

gnomeos/gnomeos-install.sh

index a0ff854cae7eced0933a18552d18fccf1df6179e..d0d3cff66af5ee9870122344fa6937d6063e8a13 100755 (executable)
@@ -40,14 +40,14 @@ usage () {
 ARCH=i686
 BRANCH_PREFIX="gnomeos-3.4-${ARCH}-"
 
-cd /ostree
-
 if ! test -d /ostree/repo/objects; then
     mkdir -p /ostree
 
     $SRCDIR/gnomeos-setup.sh /ostree
 fi
 
+cd /ostree
+
 ostree --repo=repo remote add origin http://ostree.gnome.org/repo ${BRANCH_PREFIX}{runtime,devel}
 ostree-pull --repo=repo origin
 for branch in runtime devel; do